# s = "Hello ae, Python world ae!"
# print(len(s))
#
# print(s.count("o"))
#
# print(s.upper())
#
# print(s.lower())

# print(s.find("Python"))
#
# print(s.replace("world", "universe"))

# if s[:5] == "Hello":
#     print("Ture")
#
# print(s.endswith("!"))

# print(s.split(","))
#
# print(s.rstrip("!"))

# print(s[::-1])

# print(s[7:13])
#
# print(s.lstrip("Hello,"))
#
# str = "Hello," + "World!"
# print(str)

# year = 2021
# print(f"你好{year}")

# print(s.find("a"))

# print(s.rfind("e"))

# print(s.count(" "))

# for i in s:
#     print(i)

# print(list(s))

# lists = list(s)
# lists.sort()
# print(lists)

# print(s.isnumeric())
# print(s.isdigit())

# print(" ".join(["Hello,","Python", "World!"]))

# print("Number:{:.2%}".format(100))

# print(s.islower())
# print(s.isupper())

# list1 = [1, 2, 3, 4, 5]
# result = "-".join(map(str, list1))
# print(result)

# for i in range(len(s)):
#     if s[i] == "o":
#         print(i)

# print(s.replace("o","O",1))

# str1 = "hello  world"
# str2 = "amazing"
# address= 6
# print(str1[:address] + str2 + str1[address:])


s1 = "Python is great great!"

# print(s1[::-1])
#
# print(s1.count("t"))
#
# print(s1.replace(" ", "_"))

# s2 = "A man, a plan, a canal, Panama!"
#
# s3 = "".join(i for i in s2 if i.isalnum()).lower()
# print(s3 == s3[::-1])

# print(s1.find("is"))
#
# print(s1[:(s1.find("t")+1)] + "_inserted" + s1[(s1.find("t")+1):])
#
# print(s1.replace("great", "awesome",1))

# a = int(len(s1)/2)
# str1 = s1[:a]
# str2 = s1[a:]
# print(str1[::-1] + str2[::-1])
#
# str3 = "".join(i for i in s1).upper()
# print(str3)

s3 = "encryption"
def encrypt(s3):
    dict1 = {
        "a":"m","b":"n","c":"o",
        "d":"p","e":"q","f":"r",
        "g":"s","h":"t","i":"u",
        "j":"v","k":"w","l":"x",
        "m":"y","n":"z","o":"a",
        "p":"b","q":"c","r":"d",
        "s":"e","t":"f","u":"g",
        "v":"h","w":"i","x":"j",
        "y":"k","z":"l"
    }
    return "".join(dict1[i] for i in s3)

print(encrypt(s3))
